#include "lightwidget.h"

LightWidget::LightWidget(QWidget *parent) :
    QWidget(parent)
{
    this->m_good = 15;
    this->m_bad = 100;
    this->m_value = -1;

}

void LightWidget::setState(int value){
    this->m_value = value;
    update();
}

void LightWidget::setStandard(int good, int bad){
    this->m_good = good;
    this->m_bad = bad;
    update();

}
